package com.cattsoft.ssm.web;

import com.cattsoft.ssm.entity.User;
import com.cattsoft.ssm.service.FindService;

public class FindAction {
	private int findnum;
	private FindService findService;
	public String execute(){
		User user =findService.findUserById(this.findnum);
		System.out.println(user.getUsername());
		System.out.println(user.getPassword());
		return "success";
		
	}
	public int getFindnum() {
		return findnum;
	}
	public void setFindnum(int findnum) {
		this.findnum = findnum;
	}
	public FindService getFindService() {
		return findService;
	}
	public void setFindService(FindService findService) {
		this.findService = findService;
	}
}
